909-744-2891

2017-03-01 2fa google authenticator on Centos 6 with SELinux

2fa - two factor authentication

Centos 6 has an RPM for the google-authenticator 2fa module but it is fairly old. The latest source package from Fedora compiles and runs nicely on Centos 6. In recent Fedora versions that module is nicely integrated with SELinux.

This is a repository containing the recent Fedora RPM, with a Makefile to build it under Centos 6. It also builds an SELinux policy package that allows sshd to maintain the .google_authenticator files.

The SELinux policy is based on this post.

hg clone http://hg.five-ten-sg.com/google-authenticator
cd google-authenticator
make
make install